28.06.2015 Views

AR8327/AR8327N Seven-port Gigabit Ethernet Switch - La Fibre

AR8327/AR8327N Seven-port Gigabit Ethernet Switch - La Fibre

AR8327/AR8327N Seven-port Gigabit Ethernet Switch - La Fibre

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 2-33. RESERVED ATU Entry<br />

Bit Name Description<br />

54:48 DES_PORT These bits indicate which <strong>port</strong>s are associated with this MAC address when<br />

they are set to ‘1’. Bit 48 is assigned to Port0, 49 to Port1, 50 to Port2, etc.<br />

47:0 ADDRESS 48bit MAC address<br />

2.19 HNAT<br />

The <strong>AR8327</strong>N sup<strong>port</strong>s hardware NAT (Network Address Translation) to offload the CPU loading<br />

and achieve the full wire speed when doing the NAT. The <strong>AR8327</strong>N sup<strong>port</strong> the following mode of<br />

NAT.<br />

1. Basic NAT: This involves IP address translation only, not <strong>port</strong> mapping.<br />

2. Network Address Port Translation (NAPT): This involves the translation of both IP addresses and<br />

<strong>port</strong> numbers. For the NAPT mode, the <strong>AR8327</strong>N can sup<strong>port</strong> Full cone NAT, Restricted cone NAT,<br />

Port-Restricted cone NAT and Symmetric NAT.<br />

The HNAT can automatically check the inbound and outbound traffic. If the traffic is matched the<br />

entry in the NAT or NAPT tables, then the HNAT can modify the packets accordingly without the<br />

CPU involved. For the outbound traffic from private network to public network, the HANT will do<br />

the SNAT. For the inbound traffic, the HNAT will do the DNAT.<br />

SNAT involves the following two steps:<br />

1. Router will use frame DIP to lookup the ARP table and use the DA in the ARP table to replace the<br />

original DA in the frame. Router will also replace the original SA with the Router MAC address.<br />

2. NAT will replace the frame SIP and SP with the translation IP and Port number in the NAPT table.<br />

DNAT involves the following two steps.<br />

1. NAT will replace the frame DIP and DP with the private IP and private <strong>port</strong> number in the NAPT<br />

table.<br />

2. Router will lookup the private IP in ARP table and will replace the DA by the MAC address in the<br />

table. Router will also replace the SA with Router MAC address.<br />

2.19.1 Basic NAT Table<br />

There are 32 entries in the Basic NAT table. This table is maintained by the CPU only.<br />

Table 2-34. Basic NAT Table<br />

Bit Name Description<br />

79 VALID 1'b1: entry valid; 1'b0: invalid entry<br />

78 PORT NUM EN Port number compare enable<br />

When do SNAT, compare to frame SP<br />

When do DNAT, compare to frame DP<br />

77:76 PROTOCOL Protocol, compare to frame type.<br />

2'b00:TCP<br />

2'b01:UDP<br />

2'b10:GRE<br />

2'b11:Reserved<br />

75:74 HASHKEY The value will be compared with the hash value generated by the<br />

frame's SIP and/or SP depending on the NAT_HASH_MODE.<br />

50 • <strong>AR8327</strong>/<strong>AR8327</strong>N <strong>Seven</strong>-<strong>port</strong> <strong>Gigabit</strong> <strong>Ethernet</strong> <strong>Switch</strong> Atheros Communications, Inc.<br />

50 • June 2011 COMPANY CONFIDENTIAL

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!