PDA

View Full Version : Một vấn đề vướng mắc về OSPF trên môi trường NBMA



hhnts
01-07-2003, 01:52 PM
Hi all,

Cho mình hỏi một vấn đề về cách cấu hình "cost" trong OSPF:

1. Trong môi trường NBMA (chẳng hạn Frame) và mô hình Hub-Spoke thì Cost từ Hub Router tới tất cả các Spoke là bằng nhau (Bởi vì chỉ dùng 1 physical interface ). Vậy làm sao có thể cấu hình cost khác nhau cho mỗi session Hub-Spoke?

2. Nếu Network type là: Point-to-Multipoint (RFC-2328) thì chúng ta có thể dùng lệnh:
a. IP OSPF cost <cost value> hoặc
b. Neighbor <IP add> cost &lt;cost value>
Vậy trong 2 lệnh này lệnh nào sẽ quyết định cost nếu cả hai cùng được cấu hình trên Hub router ?

3. Nếu network type là : Point-to-Multipoint (non broadcast) có cần thực hiện lệnh: Frame-relay map ip <IP add> &lt;DLCI > giữa các Spoke với nhau khong? (Trong trường hợp này I-ARP đã tự động enable ? )

HHNTS

dangquangminh
01-07-2003, 04:35 PM
chào anh,

1. Để cấu hình cho mỗi session khác nhau trong topology này, anh có thể dùng lệnh neighbor xxxx cost y trên hub router.
2. Nếu kiểu network là p-2-multipoint, cost đến các neighbor là bằng nhau. Tuy nhiên anh có thể dùng neighbor xxxx cost yyyy như trong trường hợp trên để gán các cost khác nhau. Khi này lệnh ip ospf cost ở các spokes ko có tác dụng.
3. Nếu anh dùng p-2-mp, anh cần dùng frame map giữa các spokes.

Mời Anh xem thêm link dưới đây về cách gán cost:

OSPF Point-to-Multipoint Network
with Separate Costs per Neighbor

Description
OSPF has two new features related to point-to-multipoint networks. One feature applies to broadcast networks; the other feature applies to nonbroadcast networks.


On point-to-multipoint, broadcast networks, there is no need to specify neighbors. However, you can specify neighbors with the neighbor command, in which case you should specify a cost to that neighbor.


On point to multipoint, nonbroadcast networks, you now use the neighbor command to identify neighbors. Assigning a cost to a neighbor is optional.

Before this feature, some OSPF point-to-multipoint protocol traffic was treated as multicast traffic. Therefore, the neighbor command was not needed for point-to-multipoint interfaces because multicast took care of the traffic. Hellos, updates and acknowledgments were sent using multicast. In particular, multicast hellos discovered all neighbors dynamically.

However, some customers were using point-to-multipoint on nonbroadcast media (such as classic IP over ATM), so their routers could not dynamically discover their neighbors. This feature allows the neighbor command to be used on point-to-multipoint interfaces.

On any point-to-multipoint interface (broadcast or not), the Cisco IOS software assumed the cost to each neighbor was equal. The cost was configured with the ip ospf cost command. In reality, the bandwidth to each neighbor is different, so the cost should be different. With this feature, you can configure a separate cost to each neighbor. This feature applies to point-to-multipoint interfaces only.

Benefits
You can now configure neighbors on point-to-multipoint interfaces and assign a cost to each neighbor. These capabilities allow the router to dynamically discover neighbors over nonbroadcast media and to prefer some routes over others by assigning different costs to neighbors.

Platforms
This feature is supported on these platforms:


Cisco 1003, Cisco 1004, Cisco 1005
Cisco 1600 series
Cisco 2500 series
Cisco 3600 series
Cisco 3800 series
Cisco 4000 series (Cisco 4000, 4000-M, 4500, 4500-M, 4700, 4700-M)
Cisco 5200 series
Cisco 7200 series
Cisco 7500 series
Cisco AS5300

Configuration Tasks

This section describes the following tasks to configure OSPF point-to-multipoint interfaces. Perform one of these tasks, depending on whether your network is broadcast or nonbroadcast.


- Specify a Neighbor's Cost on Point-to-Multipoint, Broadcast Networks
- Configure an Interface as Point-to-Multipoint, Nonbroadcast

Specify a Neighbor's Cost on Point-to-Multipoint, Broadcast Networks
To treat an interface as point-to-multipoint broadcast and assign a cost to each neighbor, perform the following tasks beginning in interface configuration mode: Task Command
Step 1. Configure an interface as point-to-multipoint for broadcast media.
ip ospf network point-to-multipoint

Step 2. Enter global configuration mode.
exit

Step 3. Configure an OSPF routing process and enter router configuration mode.
router ospf process-id

Step 4. Specify a neighbor and assign a cost to the neighbor.
neighbor ip-address cost number

Step 5. Repeat Step 4 for each neighbor if you want to specify a cost. Otherwise, neighbors will assume the cost of the interface, based on the ip ospf cost command.

hhnts
01-07-2003, 05:17 PM
Hi Minh

1. Trong trường hợp network type là NBMA (Default của Cisco) thì từ khoá Cost trong lệnh Neighbor xxx cost yyy đâu có tác dụng (Theo tài liệu CCNP). Vậy làm sao cấu hình nhiều cost khác nhau cho từng Spoke được ?

2. Nếu là Point-2-Multipoint mà dùng lệnh Neighbor xxx cost yyy thì giá trị yyy sẽ là cost từ Hub tới Spoke hay từ Spoke tới Hub ? và sẽ phát sinh 2 trường hợp sau:

- Nếu giá trị cost này là từ Hub tới Spoke thì lệnh Neighbor xxx cost yyy trên Hub router đâu có liên quan gì tới lệnh IP OSPF COST zzz tại Spoke ?

- Nếu giá trị cost trong lệnh Neighbor (được cấu hình trên Hub router)là xác định cost từ Spoke tới Hub thì ta lại rơi vào trường hợp không thể cấu hình được nhiều cost khác nhau cho mỗi session Hub - Spoke ???

Thật là quá lùng bùng lỗ tai. Nhờ ai giải thích kỹ hơn dùm

HHNTS

sinhvienngheo
02-07-2003, 12:06 AM
chào anh,

Em có một sô ý kiến sau:

1. Đúng như anh nói, cost trong NBMA không có tác dụng. Để cấu hình cost khác nhau cho từng spokes, ta dùng ip ospf cost.

2. Nếu net là point-to-multipoint, giá trị cost yyyy là giá trị cost từ hub đến spokees.

Lệnh ip ospf cost ở spokes trong trường hợp này là cost từ spokes về hub. Hai lệnh này không liên quan với nhau.

Hy vọng là mọi người sẽ có ý kiến khác.